package OOP.Poly_Exercise.PolyExercise_Parameter;

public abstract class Employee {
    private String name;
    private double salary;

    //构造器
    public Employee(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }
    //get方法
    public String getName() {
        return name;
    }
    public double getSalary() {
        return salary;
    }

    //set方法
    public void setName(String name) {
        this.name = name;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }


    //getAnnual方法
    public String getAnnual() {
        return "Employee :" + getSalary();
    }

}
